import { GET_HOME_DATA } from "../constants/DPMessageConstants";

let homeInitState = {
  homeData: ""
};
export default function HomeReducer(state = homeInitState, action) {
  switch (action.type) {
    case GET_HOME_DATA:
      return {
        ...state,
        ...action.data
      };
    case "test":
      return {
        ...state,
        ...action.data
      };
  }
  return state;
}
